package com.chen.controller;

import com.chen.pojo.entry.Business;
import com.chen.service.BusinessService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author chen
 * @version 1.0
 * @create_date 2025/8/17
 * 商圈管理
 */
@Slf4j
@RestController
@RequestMapping("/api/vm-service/businessType")
public class BusinessController {
    @Autowired
    private BusinessService businessService;

    @GetMapping
    public List<Business> getBusinessTypes() {
        log.info("获取商圈列表");
        return businessService.getBusinessTypes();
    }
}
